package com.example.karendemoandroid;

import android.app.ActionBar;
import android.app.ActionBar.Tab;
import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        
        final ActionBar actionBar = getActionBar();
        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
       
        actionBar.setDisplayShowTitleEnabled(true);
        
        // Social Tab
        Tab tab = actionBar.newTab()
		.setText("Social")
		.setTabListener(new CustomTab<SocialFragment>(this, "social", SocialFragment.class));

        actionBar.addTab(tab);

     // Social Tab
        tab = actionBar.newTab()
		.setText("Developer")
		.setTabListener(new CustomTab<DevFragment>(this, "dev", DevFragment.class));

        actionBar.addTab(tab);
        
    }
    
    

}